package com.quick.mybatis.service;

import java.util.List;

import com.quick.mybatis.model.PageModel;


public interface MybatisService<T>{
	
	public T getById(String id);
	
	public T get(T t);
	
	public Integer saveAll(List<T>list);
	
	public Integer getCountList(T t);
	
	public void getPageList(PageModel<T> page,Object obj,boolean isCache) throws Exception;
	
	public Integer save(T t,boolean isCache);
	
	public Integer update(T t,boolean isCache);
	
	public List<T> getList(T t,boolean isCache);
	
	public T getById(String id,boolean isCache);
	
	public Integer delete(T t,boolean isCache);
	
	public void getPageList(PageModel<T> page,Object obj) throws Exception;
	
	public Integer save(T t);
	
	public Integer update(T t);
	
	public List<T> getList(T t);
	
	public Integer delete(T t);
	
	public List<T> getList(String sql) ;
}
